// 联合类型
type ID = number | string

// 交叉类型：表示多种类型要同时满足
type NewType = number & string  // 没有意义

interface IPerson {
  name: string
  age: number
}

interface ICoder {
  name: string
  coding: () => void
}

const info: IPerson & ICoder = {
  name: "Kobe",
  age: 19,
  coding: function() {

  }
}

type IInfo = IPerson & ICoder